import request from '../../utils/request'

export function getCanUseList(params) {
  return request.ajax({
      url: `/mall/coupons/canUseList`,
      method: 'post',
      isJson:true,
      params,
      
  })
}
export function getCanReceive(id) {
  return request.ajax({
      url: `/mall/coupons/canReceive/${id}`,
      method: 'post',
      
  })
}
export function receive(id) {
  return request.ajax({
      url: `/mall/coupons/receive/${id}`,
      method: 'post',
      
  })
}
export function excechange(cdk) {
  return request.ajax({
      url: `/mall/coupons/cdk/${cdk}`,
      method: 'post',
      loading:true,
  })
}